﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RFIDStockManagement.Model.Public;

namespace RFIDStockManagement.BLL
{
    public class StockCheckDetailsBuilder
    {
        private int fid;
        List<StockCheckDetail> infos;

        public StockCheckDetailsBuilder(int id)
        {
            fid = id;
            infos = new List<StockCheckDetail>();
        }


        public List<StockCheckDetail> Details
        {
            get { return infos; }
            set { infos = value; }
        }


        public int Fid
        {
            get { return fid; }
            set { fid = value; }
        }

        public bool AddDetail(long itemId, string rfid,long stockId, long stockPlaceId,long unitId)
        {
            StockCheckDetail newInfo = new StockCheckDetail();
            newInfo.Fid = fid;
            newInfo.FRfid = rfid;
            newInfo.ItemId = itemId;
            newInfo.StockPlaceId = stockPlaceId;
            newInfo.FStockId = stockId;
            newInfo.FUnitId = unitId;
            infos.Add(newInfo);

            return true;
        }


    }
}
